package com.example.demo.service.impl;

import com.example.demo.domain.test;
import com.example.demo.mapper.testMapper;
import com.example.demo.service.testService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class testServiceImpl implements testService {

    @Autowired
    private testMapper testMapper;

    @Override
    public int amendByid(test t2) {
        return this.testMapper.amendByid(t2);
    }

    @Override
    public void add(test t1) {
        this.testMapper.add(t1);
    }

    @Override
    public int delectByid(int id) {
        return this.testMapper.delectByid(id);
    }

    @Override
    public List<test> selectBylike(String name) {
        return this.testMapper.selectBylike(name);
    }

    @Override
    public test selectByid(int id) {
        return testMapper.selectByid(id);
    }

    @Override
    public List<test> listall() {
        List<test> l = testMapper.listall();
        System.out.println(l.toString());
        return l;
    }

}
